package com.lanou3g.demo.base.service;

import com.lanou3g.demo.entity.Account;
import com.lanou3g.demo.entity.Cost;
import com.lanou3g.demo.entity.ServiceCondition;
import com.lanou3g.demo.mapper.ServiceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ServiceServiceImpl implements IServiceService {


    @Autowired
    private ServiceMapper serviceMapper;

    @Override
    public List<com.lanou3g.demo.entity.Service> selectAll() {
        return serviceMapper.selectAll();
    }

    @Override
    public void add(com.lanou3g.demo.entity.Service service) {
        serviceMapper.add(service);
    }



    @Override
    public void pause(com.lanou3g.demo.entity.Service service) {
        serviceMapper.pause(service);
    }

    @Override
    public void delete(com.lanou3g.demo.entity.Service service) {

        serviceMapper.delete(service);
    }

    @Override
    public List<Cost> selectAllCost() {
        return serviceMapper.selectAllCost();
    }

    @Override
    public com.lanou3g.demo.entity.Service selectAllDetail(Integer serviceId) {
        return serviceMapper.selectAllDetail(serviceId);
    }

    @Override
    public void updateCost(com.lanou3g.demo.entity.Service service) {
        serviceMapper.updateCost(service);
    }

    @Override
    public List<ServiceCondition> findAllByCondition(ServiceCondition serviceCondition) {
        return serviceMapper.findAllByCondition(serviceCondition);
    }

    @Override
    public List<com.lanou3g.demo.entity.Service> findByPage(Integer page) {
        return serviceMapper.findByPage(page);
    }

    @Override
    public void start(com.lanou3g.demo.entity.Service service) {
        serviceMapper.start(service);
    }

    @Override
    public Account hasAccount(Account account) {
        return serviceMapper.hasAccount(account);
    }

    @Override
    public List<ServiceCondition> findCountByCondition(ServiceCondition serviceCondition) {
        return serviceMapper.findCountByCondition(serviceCondition);
    }

}
